<?php

class StoryCategory extends AppModel {
	
	public $name = 'StoryCategory';
	
	public $actsAs = array(
		'Tree' => array(
			'parent' => 'parent',
			'left' => 'left',
			'right' => 'right'
		)
	);
	
	public $hasMany = array(
		'Story' => array (
			'class' => 'Story',
			'foreignKey' => 'category_id'
		)
	);
	
}